{# 头部 #}
<div id="navbar" class="navbar navbar-default">
    <script type="text/javascript">
        try{ace.settings.check('navbar', 'fixed')}catch(e){}
    </script>
    <!-- navbar goes here -->
    <div class="navbar-container" id="navbar-container">
        <div class="navbar-header pull-left">
            <a href="#" class="navbar-brand">
                <small>
                    <i class="fa fa-home"></i>
                    {{ title }}
                </small>
            </a>
        </div>
        <div class="navbar-buttons navbar-header pull-right" role="navigation" >
            <ul class="nav ace-nav">
                {# 用户菜单 #}
                <li class="light-blue">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <img class="nav-user-photo" src="{{ asset('bundles/icsocui/images/user.jpg') }}" alt="Jason's Photo" />
								<span class="user-info">
									<small>{{ 'Welcome'|trans }}</small>
									{{ app.user.adminname }}
								</span>
                        <i class="ace-icon fa fa-caret-down"></i>
                    </a>

                    <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close" style="min-width: 135px">
                        {% if isSetting %}
                            <li>
                                <a href="javascript:void(0);" data-url="{{ path('icsoc_security_setting') }}" datatype="tab" data-id="setting" >
                                    <i class="ace-icon fa fa-cog"></i>
                                    {% trans %} setting {% endtrans %}
                                </a>
                            </li>
                        {% endif %}
                        {% if app.user.logintype != 3 %}
                            <li>
                                <a href="javascript:void(0);" data-url="{{ path('icsoc_security_user_update_password') }}" datatype="tab" data-id="uppass" >
                                    <i class="ace-icon fa fa-user"></i>
                                     {% trans %} update password {% endtrans %}
                                </a>
                            </li>
                        {% endif %}
                        <li>
                            <a href="javascript:void(0);" data-url="{{ path('icsoc_guide_index') }}" datatype="tab" data-id="guid" >
                                <i class="ace-icon fa fa-cog"></i>
                                {% trans %} To help guide {% endtrans %}
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="{{ path('icsoc_security_logout') }}">
                                <i class="ace-icon fa fa-power-off"></i>
                                {% trans %} Logout {% endtrans %}
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>